﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="new.aspx.cs" Inherits="sys_new" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>新建系统管理员用户</title>
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            text-align: right;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="main">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    <div id="head">
    
    </div>
    <div id="content">
        <table style="width: 100%;">
            <tr>
                <td class="style1">*用户名：
                </td>
                <td>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
                    <asp:TextBox ID="tb_username" runat="server" MaxLength="20" AutoPostBack="True" 
                        ontextchanged="tb_username_TextChanged"></asp:TextBox>
                    <asp:Label ID="Label1" runat="server" style="color: #CC3300" Text="*此用户名已经使用" Visible="False"></asp:Label>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="tb_username" EventName="TextChanged" />
            </Triggers>
        </asp:UpdatePanel>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="RequiredFieldValidator" ControlToValidate="tb_username" Text="*必须输入"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">*真实姓名：</td>
                <td>
                   <asp:TextBox ID="tb_realname" runat="server" MaxLength="10"></asp:TextBox></td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ErrorMessage="RequiredFieldValidator" ControlToValidate="tb_realname">*必须输入</asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td class="style1">*手机号码：</td>
                <td>
                    <asp:TextBox ID="tb_mphone" runat="server"></asp:TextBox></td>
                <td>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="RequiredFieldValidator" ControlToValidate="tb_mphone">*必须输入</asp:RequiredFieldValidator>
                     &nbsp; &nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="tb_mphone" ErrorMessage="RegularExpressionValidator" 
                        ValidationExpression="((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)">*格式错误</asp:RegularExpressionValidator>
                        </td>
            </tr>
            <tr>
                <td class="style1">*密码：
                </td>
                <td>
                    <asp:TextBox ID="tb_password" runat="server" TextMode="Password" CssClass="pwdWidth" MaxLength="16"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="RequiredFieldValidator" ControlToValidate="tb_password" Text="*必须输入"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">*确认密码：
                </td>
                <td>
                    <asp:TextBox ID="tb_re_password" runat="server" TextMode="Password" CssClass="pwdWidth" MaxLength="16"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator" Text="*必须输入" ControlToValidate="tb_re_password"></asp:RequiredFieldValidator>
                     &nbsp; &nbsp;<asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="CompareValidator" ControlToCompare="tb_password" ControlToValidate="tb_re_password" Text="*两次输入不一致"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">&nbsp;</td>
                <td>
                    
                    <asp:LinkButton ID="LinkButton1" runat="server" CssClass="imgborder" onclick="ImageButton1_Click" ><img src="../../images/reg.gif" alt="" /></asp:LinkButton>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1">&nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
        
        </div>
    </div>
    </form>
</body>
</html>
